package io.renren.modules.communityService.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.communityService.dto.DbDailyHealthCardDTO;
import io.renren.modules.communityService.dto.MiniAppDbDailyHealthCardInfoDTO;
import io.renren.modules.communityService.dto.MiniAppDbDailyHealthCardSaveDTO;
import io.renren.modules.communityService.vo.DbDailyHealthCardVO;
import io.renren.modules.communityService.entity.DbDailyHealthCardEntity;

import java.io.Serializable;
import java.util.Collection;


/**
 * 每日健康打卡
 *
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2021-03-22 10:58:35
 */
public interface DbDailyHealthCardService extends IService<DbDailyHealthCardEntity> {

    /**
     * 分页查询
     * @param dbDailyHealthCard
     * @return
     */
    PageUtils queryPage(DbDailyHealthCardDTO dbDailyHealthCard);
    /**
     * 根据id查询
     * @param id
     * @return
     */
    DbDailyHealthCardVO getById(Integer id);
    /**
     * 保存
     * @param dbDailyHealthCard
     * @return
     */
    boolean save(DbDailyHealthCardDTO dbDailyHealthCard);
    /**
     * 根据id修改
     * @param dbDailyHealthCard
     * @return
     */
    boolean updateById(DbDailyHealthCardDTO dbDailyHealthCard);
    /**
     * 根据id删除
     * @param id
     * @return
     */
    @Override
    boolean removeById(Serializable id);

    /**
     * 根据id批量删除
     * @param ids
     * @return
     */
    @Override
    boolean removeByIds(Collection<? extends Serializable> ids);

    /**
     * 每日健康打卡
     * @param dto
     */
    void save(MiniAppDbDailyHealthCardSaveDTO dto);

    /**
     * 每日健康打卡详情
     * @param dto
     * @return
     */
    DbDailyHealthCardEntity info(MiniAppDbDailyHealthCardInfoDTO dto);
}

